package com.zy.project.system.permission.repository.impl;

import com.zy.project.system.online.repository.UserOnlineRepository;
import com.zy.project.system.permission.entity.SystemPermission;
import com.zy.project.system.permission.repository.SystemPermissionRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * 系统权限相关接口实现
 * Package: core.repository.impl
 * <p>
 * Description： TODO
 * <p>
 * Author: zhangyu
 * <p>
 * Date: Created in 2018-9-3 20:45
 * <p>
 * Company: mingtu
 * <p>
 * Copyright: Copyright (c) 2018
 * <p>
 * Version: 0.0.1
 * <p>
 * Modified By:
 */
public class SystemPermissionRepositoryImpl {

    @Autowired
    private SystemPermissionRepository permissionRepository;

    public void testFind(){
        Optional<SystemPermission> opt = permissionRepository.findById("402881846725a8f2016725ad26a70000");
        System.out.println(opt.get());
    }
}
